package mysql

import "gorm.io/gorm"

type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(20);not null:comment:小说名"`
	Author string `gorm:"type:varchar(20);not null:comment:作者"`
	Info   string `gorm:"type:varchar(20);not null:comment:简介"`
	UserId int    `gorm:"type:int(11);not null:comment:用户ID"`
}
